package com.aotain.oframework.date;

import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.util.Calendar;

public class Demo01 {

	private String number;
	private String name;
	private String gender;
	private Calendar date;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public Calendar getDate() {
		return date;
	}

	public void setDate(Calendar date) {
		this.date = date;
	}

	public static void main(String[] args) throws IntrospectionException {
		BeanInfo beanInfo = Introspector.getBeanInfo(Demo01.class);
		PropertyDescriptor[] propertyDescriptor = beanInfo.getPropertyDescriptors();
		for (PropertyDescriptor pd : propertyDescriptor) {
			//System.out.println(pd.getReadMethod());
			//System.out.println(pd.getWriteMethod());
			System.out.println(pd.getPropertyType());
		}
	}

}
